﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TwKarma.Data.Entity
{
    public class TwitterUserDetails : TwitterUser
    {
        public string ProfileBackgroundImageUrl { get; private set; }

        public TwitterUserDetails(string screenname)
        {
            Dimebrain.TweetSharp.Model.TwitterUser user = FromScreenName(screenname);

            if (user == null)
            {
                // Complet with defaults
                ProfileBackgroundImageUrl = "";  
            }
            else
            {
                ProfileBackgroundImageUrl = user.ProfileBackgroundImageUrl;
            }
        }

    }
}
